﻿/*************************************************************************
  File:   as/setcam.as
  Author: Duykham
  Date:   11/09/2006
  TODO:   Using for publishCam.FLA
/*************************************************************************/

trace("#included: setcam.as")

///////////////////////////////////////////////////////////////////////////
//TODO: included files
//#include "publishCam.as"

///////////////////////////////////////////////////////////////////////////

//var publishCam = new Camera;
//var publishMic = new Microphone;

var camName = new String;
var disName = new String;
var camNumber = new String;
var userMotionLevel;
var camPriority = new String;
var text1:String = new String;
//var cameras_cb:mx.controls.ComboBox;

/////////////////////////////////////

//cameras_cb.dataProvider = Camera.names;

//cnsMotion.minimum = 5;
//cnsMotion.maximum = 100;
//cnsMotion.stepSize = 5;
//cnsMotion.value = 50;

camID_txt._visible = false;
cam_txt._visible = false;
motion_txt._visible = false;
priority_txt._visible = false;
display_txt._visible = false;

/////////////////////////////////////
next_btn.onRelease = function()
//this.onEnterFrame = function()
{
	//_root.publishCam.get (cameras_cb.selectedIndex);
	//_root.publishMic.get ();
	
	//_root.camNumber = cameras_cb.selectedIndex;
	
	_root.camNumber = camID_txt.text;
	_root.camName = cam_txt.text;
	_root.disName = display_txt.text;
	_root.userMotionLevel = motion_txt.text;
	_root.camPriority = priority_txt.text;
	
	toolTip.hide();
	
	gotoAndPlay("step2");
};

this.onEnterFrame = function()
{
	text1 = display_txt.text;
	//text1 = cam_txt.text;
};